#include<iostream>
#include<vector>
using namespace std;

void bubble_sort(vector<int>&v)
{
 int n=v.size();
 for (int i=0;i<n-1;i++)
  {
   for (int j=i+1; j<n; j++)
    {
     if (v[i]>v[j])
      {
       int tmp=v[i]; v[i]=v[j]; v[j]=tmp;
      }
    }
  }
}
int main()
{
 vector<int>a;
 int i=0;
 
 while (1)
 {
  cin>>i;
  if (i==0) break;

  a.push_back(i);
 }
int n=a.size();
bubble_sort(a);

for (i=0; i<n;i++)
cout<<a[i]<<" ";
return 0;
}
